package com.bjpowernode.crm.workbench.mapper;

import com.bjpowernode.crm.workbench.domain.Customer;

import java.util.List;

public interface CustomerMapper {

    int updateByPrimaryKey(Customer record);

    int insert(Customer record);

    //增加
    int insertSelective(Customer customer);
    //删除
    int deleteByPrimaryKey(String id);
    //修改
    int updateByPrimaryKeySelective(Customer customer);
    //根据主键查询
    Customer selectByPrimaryKey(String id);
    //有条件的查询全部
    List<Customer> selectAllByCondition(Customer customer);
    //根据主键查询详情
    Customer selectByPrimaryKeyForDetails(String id);
    //根据名字模糊查找客户
    List<Customer> selectCustomerByName(String customerName);
}